home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / extras / programm / gemfsc20 / gemfsc20.lzh / VBITIMAG.S < prev    next >
Text File  |  1993-03-27  |  2KB  |  54 lines

  1. ;*========================================================================
  2. ;* VDIFAST Public Domain VDI bindings.
  3. ;*========================================================================
  4.  
  5.  
  6. ;*------------------------------------------------------------------------
  7. ;*
  8. ;*------------------------------------------------------------------------
  9.  
  10.           globl     _v_bit_image
  11. _v_bit_image:
  12.  
  13. ;          .cargs    #8,handle.w,fname.l,aspect.w,xscale.w,yscale.w,halign.w,valign.w,pxy.l
  14.  
  15. handle      =         8
  16. fname      =         10
  17. aspect      =         12
  18. xscale      =         14
  19. yscale      =         16
  20. halign      =         18
  21. valign      =         20
  22. pxy       =         22
  23.  
  24.           link        a6,#0
  25.  
  26.           move.l    fname(a6),a0        ;* Get the string pointer.
  27.           jsr        vstr_stack            ;* Go integerize and stack string.
  28.  
  29.           move.w    valign(a6),-(sp)    ;* put other intin parms on stack
  30.           move.w    halign(a6),-(sp)    ;* before the stacked filename
  31.           move.w    yscale(a6),-(sp)    ;* string.
  32.           move.w    xscale(a6),-(sp)
  33.           move.w    aspect(a6),-(sp)
  34.  
  35.           move.l    sp,a0                ;* make intin pointer, increase
  36.           addq.w    #5,d0                ;* intin count by # of fixed parms.
  37.  
  38. ;          VContrl    #5,#23,,d0
  39.           move.w    handle(a6),-(sp)    ; contrl[6]
  40.           move.w    #23,-(sp)            ; contrl[5]
  41.           subq.l    #2,sp                ; contrl[4]
  42.           move.w    d0,-(sp)            ; contrl[3]
  43.           subq.l    #2,sp                ; contrl[2]
  44.           clr.w     -(sp)                ; contrl[1]
  45.           move.w    #5,-(sp)            ; contrl[0]
  46.  
  47.           lea        -12(sp),sp            ;* -> ptsout, intout, ptsin
  48.           move.l    a0,-(sp)            ;* -> intin
  49.           pea        16(sp)                ;* -> contrl
  50.  
  51.           jmp        vdicall
  52.  
  53.           end
  54.